import myaxios from  '@/mytools/myaxios'

export function DictionaryTableAdd(info) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/DictionaryTable/DictionaryTableAdd',
      method: 'post',
      data: info,
    })
  }

  export function DictionaryTableDelete(id) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/DictionaryTable/DictionaryTableDelete?id='+id,
      method: 'post',
    })
  }

  export function DictionaryTableEdit(id) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/DictionaryTable/DictionaryTableEdit',
      method: 'get',
      params: { id: id },
    })
  }

  export function DictionaryTableUpdate(info) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/DictionaryTable/DictionaryTableUpdate',
      method: 'post',
      data: info,
    })
  }

  export function SearchPage(searchModel) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/DictionaryTable/SearchPage',
      method: 'post',
      data:searchModel
    })
  }

  export function BindType() {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/DictionaryTable/BindType',
      method: 'get',
    })
  }

